package day20171031;

public class Aa {
    int x=1,y=2;
    double add(){ return x+y;}
}
class B extends Aa{
    int x=10,y=20;
    double add(){return  super.x+super.y;}

}
class ex2{
    public static void main(String[] args) {
        Aa a=new Aa();
        B b=new B();
        System.out.println("a.add"+a.add());
        System.out.println("b.add"+b.add());

    }
}
